package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 获取角色对应该表单权限信息DTO
 * @author kaka
 * @time 2018-10-16 10:05
 */
@Getter
@Setter
@ToString
public class FormRoleDetailDTO extends BaseDTO {

    private static final long serialVersionUID = 7862222475553099660L;

    /**
     * 区分SaaS和PaaS
     */
    @NotNull(message = "{dto.msg.formRoleDetail.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.formRoleDetail.appId.NotNull}")
    private Long appId;

    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.formRoleDetail.menuId.NotNull}")
    private Long menuId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.formRoleDetail.menuId.NotNull}")
    private Long formId;

    /**
     * saas业务类型
     */
    private Integer businessType;

    /**
     * 角色id
     */
    @NotNull(message = "{dto.msg.formRoleDetail.roleId.NotNull}")
    private Integer roleId;

}
